﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;
using System.ServiceModel.DomainServices.Server.ApplicationServices;

namespace VS.Web.Model
{
    public partial class User : IUser
    {
        private string _roles = string.Empty;

        [DataMember]
        public IEnumerable<string> Roles
        {
            get { return _roles.Split(','); }
            set { _roles = string.Join(",", value.ToArray()); }
        }
    }
}